InvokeDotNETMethodWithArgs

Note: This statement is named Invoke .NET Method with Arguments in the Add Statement dialog box.

Invokes a .NET method with parameters in an array and returns the method value.

Only use this statement if you have Visual C# .NET or Visual Basic .NET experience.

Syntax

InvokeDotNETMethodWithArgs("MethodName", ArrayOfParameters)

Arguments

Argument Description
MethodName .NET method name to invoke.
ArrayOfParameters Array that holds parameters to pass to the .NET method.

Return value

Value Description
Value Method value.

Supported objects

Browser, Button, Calendar, Cell, CheckBox, ColumnHeader, ComboBox, ContextMenu, Control, DateTimePicker, EditBox, Grid, HTMLElement, HTMLLink, HTMLTable, Image, Item, Label, Link, ListBox, ListView, Menu, NavigationField, PopupMenu, ProgressBar, RadioButton, Row, RowHeader, ScrollBar, Slider, SpinBox, SubItem, Tab, TabBar, ToolBar, Tree, Window

Example

Dim array(2)

array(1) = "parameter"

array(2) = 2

returnValue = Window("Form").EditBox("editboxRegister").InvokeDotNETMethodWithArgs("Clear", array)